//
//  WorshipbuddaViewController.m
//  insight
//
//  Created by HY on 2018/9/25.
//  Copyright © 2018年 dfhfe. All rights reserved.
//

#import "WorshipbuddaViewController.h"
#import "UIColor+ColorChange.h"
#import "RecommandTableViewController.h"
#import "FoodsTableViewController.h"
#import "CalendarTableViewController.h"
#import "MusicTableViewController.h"
#import "EtiquetteTableViewController.h"
#import "LearnTableViewController.h"


@interface WorshipbuddaViewController ()

@end

@implementation WorshipbuddaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"礼佛";
    [self setupAllChildViewController];
    // Do any additional setup after loading the view.
}

#pragma mark - 设置全部子控制器到
- (void)setupAllChildViewController {
    
    //推荐
    [self setOneChildController:[[RecommandTableViewController alloc]init] title:@"推荐"];
    
    //佛斋
    [self setOneChildController:[[FoodsTableViewController alloc]init] title:@"佛斋"];
    
    //佛历
    [self setOneChildController:[[CalendarTableViewController alloc]init] title:@"佛历"];
    
    //佛乐
    [self setOneChildController:[[MusicTableViewController alloc]init] title:@"佛乐"];
    
    //佛礼
    [self setOneChildController:[[EtiquetteTableViewController alloc]init] title:@"佛礼"];
    
    //佛言
    [self setOneChildController:[[LearnTableViewController alloc]init] title:@"佛言"];
    
}


- (void)setOneChildController:(UIViewController *)vc title:(NSString *)title
{
    vc.title = title;
    [self addChildViewController:vc];
}

@end
